package com.jctrip.hotel.management.model.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author：Haruhi
 * @description:
 * @Date：2023/9/25 11:02
 * @Package：com.jctrip.hotel.management.model.param
 * @Project：hotel-main
 */
@Data
public class UpdateXiechengPricePolicyParam {

    @ApiModelProperty("价格政策id")
    private String pricePolicyId;

    @ApiModelProperty("渠道编码")
    private String sourceCode;

    @ApiModelProperty("价格政策名称")
    private String pricePolicyName;

    @ApiModelProperty("价格政策编码")
    private String pricePolicyCode;

    @ApiModelProperty("渠道id")
    private String routeId;

    @ApiModelProperty("支付类型")
    private Integer paymentType;

    @ApiModelProperty("价格模式")
    private Integer priceType;

    @ApiModelProperty("取哪个价格")
    private Integer priceGuide;

    @ApiModelProperty("售卖库存类型")
    private Integer stockType;

    @ApiModelProperty("早餐数")
    private Integer breakfastCount;

    @ApiModelProperty("取消规则")
    private cancelRuleInfo cancelRule;


    @Data
    public static class cancelRuleInfo {
        @ApiModelProperty("取消类型,携程选填,0不变 1 不可取消 2 可取消")
        private Integer cancelType;

        @ApiModelProperty("最晚取消时间天,携程选填且取消类型为2时必填")
        private Integer latestCancelTimeOfDays;

        @ApiModelProperty("最晚取消时间小时,携程选填且取消类型为2时必填；（范围1~23")
        private Integer latestCancelTimeOfHours;

        @ApiModelProperty("逾期扣款类型,携程选填F：扣首日 C:扣全款，默认为C且取消类型为2时必填")
        private String overduePaymentType;
    }
}
